#include <iostream>
#include <string>

using namespace std;

int takePosInt (string x)
{
	cout<<x;
	int a=NULL;
	while(!(cin>>a))
	{
		cout<<endl<<x;
		cin.clear();
		cin.ignore (1000, '\n');
	}
	return a;
}